home *** CD-ROM | disk | FTP | other *** search
/ The PC-SIG Library 10 / The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso / PC_SIGCD / 03 / 7 / DISK0378.ZIP / FSED.DOC < prev    next >
Text File  |  1985-01-05  |  17KB  |  429 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.                                    FSED
  19.  
  20.                                A Full Screen Editor
  21.  
  22.                                         for
  23.  
  24.                              The IBM Personal Computer
  25.  
  26.  
  27.  
  28.  
  29.                                     Version 2.0
  30.  
  31.  
  32.  
  33.  
  34.  
  35.                                   Copyright 1983
  36.                                         by
  37.                                   D. W. Daetwyler
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                                         1
  62.  
  63.  
  64.  
  65.  
  66.  
  67.         Full Screen Editor - Version 2.0
  68.  
  69.  
  70.                                 TABLE OF CONTENTS
  71.  
  72.                                                      Page
  73.  
  74.         PREFACE                                        3
  75.  
  76.         INTRODUCTION                                   4
  77.  
  78.         STARTING OUT                                   5
  79.  
  80.         EDITING A FILE                                 9
  81.  
  82.         COMMANDS                                      12
  83.  
  84.              SCROLLING                                13
  85.              CURSOR MOVEMENT                          14
  86.              CHARACTER MANIPULATION                   16
  87.              LINE MANIPULATION                        17
  88.              SEARCH                                   19
  89.              FILE CONTROL                             20
  90.              EDITOR CONTROL                           22
  91.              MISCELLANEOUS                            24
  92.  
  93.         CONCLUSION                                    26
  94.  
  95.         ERROR MESSAGES                                27
  96.  
  97.         APPENDIX A                                    29
  98.         APPENDIX B                                    30
  99.         APPENDIX C                                    32
  100.         APPENDIX D                                    33
  101.  
  102.         QUICK REFERENCE                               34
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.         Table of contents              2
  128.  
  129.  
  130.  
  131.  
  132.  
  133.         Full Screen Editor - Version 2.0
  134.  
  135.  
  136.         EPREFACEF
  137.  
  138.              This is a T.P.I.R product!  (The Price Is... Reasonable?)  I 
  139.         object  to  paying  half the price of my hardware  for  a  single 
  140.         software  package,  so  I'm trying to do something about  it.   I 
  141.         believe  that there are enough "micros" around to make a  reason-
  142.         able  return on your labor investment through  volume...  if  you 
  143.         don't  have  to pay substantive advertising and marketing  costs.  
  144.         If  you're reading this document,  you have the package.   It  is 
  145.         copyrighted, so what are your rights?  They are given here:
  146.  
  147.         --  You are free to copy, and encouraged to distribute to any/all 
  148.              of your friends,  the materials included in the distribution 
  149.              diskettte.  Please include this document.
  150.  
  151.         --  You  may use these materials in any way you see fit,  but you 
  152.              may  not "sell" the package.   
  153.  
  154.         Where's the "catch"?   Simple.   Its up to you.   If you use this 
  155.         package, and like it, send me a check for $35.  Otherwise, thanks 
  156.         for experimenting!   What do you get for the $35, besides a clear 
  157.         conscience?   Not much.  I'll put you on my mailing list and when 
  158.         (not  if)  bugs are encountered,  I'll notify you and offer   our 
  159.         handy, dandy copy service, which incidentally is available to all 
  160.         your friends for their initial copy,  if you don't want to bother 
  161.         copying the diskette.   I'll also notify you when future develop-
  162.         ments are available:   we now have the Screen Design Aid, a util-
  163.         ity that takes a lot of the drudgery out of building  interactive 
  164.         menus;  the  LIST  utility,  which allows for "wild  card"  print 
  165.         requests, optionally provides headings, and fully supports all of 
  166.         the  many and varied modes of printing without messing  with  the 
  167.         MODE   command;   and  a  Full  Screen  Editor,   primarily   for 
  168.         programming,  which  supports either display interface,  provides 
  169.         very "full function", and is FAST.  All operate on PC-DOS V1.x or 
  170.         V2.0.  
  171.  
  172.              The copy service mentioned  is also simple:  Send diskette, 
  173.         mailer, and enough postage to the writer and we'll make a copy of 
  174.         the distribution diskette for you.  If you don't want to send the 
  175.         diskette,  mailer,  et al., send a check for $7.50 and we'll send 
  176.         you a new diskette with the materials (Single surface, 8 sector).  
  177.         The last page of this document is an order/registration form.
  178.  
  179.         DISCLAIMER (Or I really don't want to be sued!)
  180.  
  181.         Although  reasonable  testing  has  been  conducted,   under   no 
  182.         circumstances will the author be liable to you or any third party 
  183.         for  any damages,  including lost profits or other incidental  or 
  184.         consequential damages arising out of the use of, or the inability 
  185.         to use,  this software.  Further the offers made in this document 
  186.         are  subject to withdrawal at any time and without  notification, 
  187.         and prices quoted are subject to change without notice.      
  188.  
  189.  
  190.  
  191.  
  192.  
  193.     Preface                        3
  194.  
  195.  
  196.  
  197.  
  198.  
  199.         Full Screen Editor - Version 2.0
  200.  
  201.  
  202.         INTRODUCTION
  203.                  
  204.              The  Full  Screen Editor (FSED) is primarily  a  programming 
  205.         development tool for the applications or systems programmer.   It 
  206.         is designed to work with the IBM Personal Computer,  using either 
  207.         the  Monochrome Display or the Color/Graphics interface,  and  at 
  208.         least  one disk.   Although the editor will operate  on  machines 
  209.         with  as  little  as 64K bytes of memory,  its design  point  for 
  210.         optimum operation is the 128K memory system.  As an  environment, 
  211.         it  expects  the IBM Disk Operating System (DOS) Versions 1.x  or 
  212.         2.0,  and uses the facilities of this operating system as well as 
  213.         the facilities of the Basic Input/Output System (BIOS).  
  214.  
  215.              Although  programming language independent,  the editor will 
  216.         be  of most use to the programmer  using  Assembler,  PASCAL,  or 
  217.         FORTRAN.  The  BASIC programmer's use of the editor will probably 
  218.         be limited to selected special functions (eg:  search for a vari-
  219.         able  name),  and no specific format processor  for BASIC is  in-
  220.         cluded in the editor.  Users of the BASIC Compiler will find  the 
  221.         editor useful,  however.  Similarily, although selected functions 
  222.         permit  the use of the editor for "text" processing,  these tools 
  223.         are limited and primitive when compared to a normal,  full  func-
  224.         tion, text processor.
  225.  
  226.              The  editor works with "files" which are normal DOS files in 
  227.         ASCII or source form.   Files to be processed by this editor  are 
  228.         limited to "lines" of not greater than 80 characters.  
  229.           
  230.                                 * * * WARNING * * *
  231.                
  232.              If  editing  is attempted on files containing lines of  more 
  233.         than  80 characters,  truncation will occur and portions  of  the 
  234.         data will be lost.  Under certain conditions, attempting to apply 
  235.         functions against these lines may cause catastrophic error!!!
  236.  
  237.             Using  the  facilities of the editor,  the  programmer  may: 
  238.         create  or  modify  source language files,  extract  portions  of 
  239.         existing files,  insert existing files into other files,  or  use 
  240.         existing files to create new files.   Twenty-four lines of source 
  241.         are  normally  displayed during all editing functions,  and  pro-
  242.         vision is made for "paging" through files by displaying sucessive 
  243.         pages.  Characters  can be changed,  deleted,  or  inserted  into 
  244.         existing lines.   New lines may be added, existing lines deleted, 
  245.         moved,  or  copied.   Finally,  a substantial number of "control" 
  246.         functions  can be exercised,  most by the depression of a  single 
  247.         key.   All of the functions, with the exception of those that are 
  248.         limited  by  disk speeds,  are performed  at  speeds  essentially 
  249.         within the human response range.
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.         Introduction -                 4
  260.  
  261.  
  262.  
  263.  
  264.  
  265.         Full Screen Editor - Version 2.0
  266.  
  267.  
  268.         STARTING OUT
  269.               
  270.              Since the Full Screen Editor requires IBM DOS to operate, it 
  271.         is  assumed that you are familiar with the terms and  conventions 
  272.         of  the DOS.   File names and disk operations are those supported 
  273.         by the standard DOS, so no attempt is made to cover this material 
  274.         in this document.  
  275.  
  276.              In an attempt to keep this document simple,  many details of 
  277.         functioning are omitted from the main discussion.   These details 
  278.         are  generally not important to the typical user,  however  since 
  279.         they  may effect some unique process you are attempting they  are 
  280.         included in the set of appendicies appearing at the back of  this 
  281.         document.   When  the  general area effected by the  appendix  is 
  282.         first discussed a parenthetical reference is included (eg: Appen-
  283.         dix A).  You should read through the material as it is presented, 
  284.         omitting the appendicies during your first use of the editor.  As 
  285.         your  familiarity  grows and you attempt more complex  use,  then 
  286.         reference to the appendicies will resolve most questions that may 
  287.         arise.
  288.  
  289.              This document is written for the "new" programmer.   For the 
  290.         experienced  programmer,   scanning  this  introductory  material 
  291.         should  be  sufficient.   The largest section of  this  document, 
  292.         "COMMANDS",  should be reviewed by all users,  and will provide a 
  293.         ready reference during productive use of the editor.
  294.          
  295.                                 SAVING THE EDITOR
  296.                
  297.              The distribution diskette included with this manual contains 
  298.         a file named FSED.COM.   Your first action should be to copy this 
  299.         file  to a work diskette containing your IBM DOS.   Use the  Copy 
  300.         utility included with your DOS,  following the instructions  pro-
  301.         vided  in the DOS manual.   File and save your distribution disk-
  302.         ette as your "master".   The distribution diskette is "file  pro-
  303.         tected"   which  will  prevent  accidental  destruction  of  your 
  304.         "master".
  305.           
  306.                                  USING THE EDITOR
  307.                
  308.              The editor will operate properly on either one or two  drive 
  309.         systems.   Initially, we'll use it by inserting the work diskette 
  310.         containing  IBM DOS and the FSED.COM file in the drive  "A".   To 
  311.         start the editor you may use any of three forms of DOS commands:
  312.          
  313.                   A:>FSED
  314.                   A:>FSED yourfile.type
  315.                   A:>FSED yourfile.type outfile.type
  316.               
  317.              As  you  gain familiarity with the editor,  the second  form 
  318.         shown above is the one you'll use most frequently.   To help  you 
  319.         get  started,  we'll  discuss  all three forms and  the  editor's 
  320.         response to each.  
  321.  
  322.  
  323.  
  324.  
  325.         Starting Out -                 5
  326.  
  327.  
  328.  
  329.  
  330.  
  331.         Full Screen Editor - Version 2.0
  332.  
  333.  
  334.              In all three cases,  when you enter this command, the screen 
  335.         will briefly display an identification screen that simply announ-
  336.         ces  the editor has been loaded properly.   If you have used  the 
  337.         first form of the command, a prompt near the bottom of the screen 
  338.         will  ask for your file name.   Just as in the second  and  third 
  339.         forms of the command,  the file name requested is a "fully quali-
  340.         fied"  DOS file name.   Drive may be specified,  and if it is not 
  341.         then the "default" or signed on drive is implied.   "type" is not 
  342.         required by the editor,  but most language processors do  require 
  343.         it, so normally it should be specified.  
  344.  
  345.              If  the  file  you have named exists on the drive  you  have 
  346.         specified or defaulted to,  then the first 24 source lines of the 
  347.         file will be displayed without further action.   If the directory 
  348.         does not contain the name you gave,  then a prompt will appear at 
  349.         the bottom of the screen:
  350.  
  351.               "New file - (Y or N)"
  352.  
  353.              If you are actually creating a new file,  reply "Y" and  you 
  354.         will  be  presented  with a "blank" screen  containing  only  the 
  355.         editor  prompt line (line 25),  and an "end of file" marker line. 
  356.         If  you  have made an error in specification of your  file  name, 
  357.         reply "N",  and the editor will prompt for the correct name, just 
  358.         as it did when the first form of the command was used to initiate 
  359.         the editor.  
  360.  
  361.              Before  discussing  the third form of  the  command,  it  is 
  362.         necessary  to  understand how the editor handles file  names  and 
  363.         directory updates.   The editor is designed to prevent catastrop-
  364.         hic data loss.   If you are updating an existing file,  that file 
  365.         in  its original form,  will still exist at the conclusion of the 
  366.         edit process.  Editing the file actually causes the creation of a 
  367.         new  file  containing the edit changes,  and normally  named  the 
  368.         same as the file specified as "yourfile" in the command or prompt 
  369.         sequences.   The original file is renamed to "yourfile.BAK".   If 
  370.         "yourfile.BAK" existed prior to the start of the editor,  the old 
  371.         backup  file  will be automatically  deleted.   This  complicated 
  372.         sounding process simply results in maintenance of two versions of 
  373.         "yourfile".   The current version and one back up version without 
  374.         the last set of changes.  
  375.  
  376.              For the editor to function properly, then, there must always 
  377.         be  sufficient disk space available on the output drive,  to con-
  378.         tain the entire file being edited, plus any changes you introduce 
  379.         in this edit process.  This is a "free space" requirement that is 
  380.         in  addition to any "back up" files  and the original file to  be 
  381.         edited, that may already reside on the disk.  
  382.  
  383.              The  third  form  of the command  over-rides  this  process. 
  384.         "outfile.type"  is your desired name for the new file created  by 
  385.         the editor.   When this form of the command is used, the original 
  386.         file  is  not changed,  and the rename to a back up file  is  not 
  387.         performed.  Note that the output file need not reside on the same 
  388.         drive  as the input file,  in two  drive  configurations.   Drive 
  389.  
  390.  
  391.         Starting Out -                 6
  392.  
  393.  
  394.  
  395.  
  396.  
  397.         Full Screen Editor - Version 2.0
  398.  
  399.  
  400.         identifier may be specified with the "outfile" name.  
  401.  
  402.              Finally, there is one additional prompt that you will rarely 
  403.         see.   If  you  have used the third form of the command and  have 
  404.         given  a name for your output file that already  exists,  then  a 
  405.         prompt that warns you of this condition will appear,  and you are 
  406.         requested  to  give permission to proceed ("Y") or cancel  ("N").  
  407.         If you permit the editor to continue, the content of the existing 
  408.         file will be over-written and lost!!! (Appendix A).
  409.  
  410.              Before proceeding into the edit process,  a brief discussion 
  411.         of  file  sizes and drive  configurations  is  appropriate.   The 
  412.         editor is capable of processing a "very large" file,  essentially 
  413.         limited only by the diskette capacity and the "space requirement" 
  414.         cited in the previous paragraphs.   In actual practice,  you will 
  415.         find it much more convienent to work with small or moderate sized 
  416.         files.  The primary difference to the user is how "automati
  417.  
  418.  
  419.         This disk copy was originally provided by "The Public Library",
  420.         the software library of the Houston Area League of PC Users.
  421.         Disks in the Public Libray are updated monthly.  Check with us
  422.         for the latest versions of all programs.
  423.  
  424.         Programs are available from the Public Library at $2 per disk
  425.         on user-provided disks.  To get a listing of the disks in the
  426.         Public Library, send a self-addressed, stamped envelope to
  427.  
  428.              Nelson Ford,  P.O.Box 61565,  Houston, TX 77208.
  429.